<?php

class Dashboard extends CI_Controller {
	
	function __construct()
  {
      parent::__construct();
      
      if(!$this->user_model->Secure(array('userType' => 'member')))
      {
          $this->session->set_flashdata('flashError', 'You must be logged into a valid account to access this section.');
          redirect('login');
      }
  }
	
	function index()
	{
    $data['main_content'] = 'dashboard/dashboard_index';
    $data['email'] = $this->session->userdata('userEmail');
		$this->load->view('template', $data);
	}
	
}